#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>

#include "configure.h"
#include "../ffmpeg/ffmpegheader.h"

QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();

private:
    void startVideoThread();

    // QWidget interface
protected:
    void resizeEvent(QResizeEvent *event);

private:
    Ui::MainWindow *ui;

#if HW_ACC
    HWFFmpegFind* m_hwffmpeg_find;
#else
    FFmpeg* m_ffmpeg;
#endif

    RtpsThread* m_rtpsthread{nullptr};
    QThread* m_video_thread;
};
#endif // MAINWINDOW_H
